<%@ include file="/taglibs.jsp"%>

<head>
    <title>
    <c:if test="${empty param.id}">
    	<fmt:message key="timeHolidayForm.add.title"/>
    </c:if>
    <c:if test="${not empty param.id}">
    	<fmt:message key="timeHolidayForm.edit.title"/>
    </c:if>
    </title>
    <script type="text/javascript" src="${ctx}/scripts/file_module.js"></script>
</head>

<p><fmt:message key="detailForm.header"/></p>
  
<s:form name="timeHolidayForm" action="saveTimeHoliday" method="post" validate="true">
<s:hidden name="timeHoliday.id" value="%{timeHoliday.id}"/>

<tr>
	<td>
		<s:text name="timeHoliday.holidayName"></s:text>
		<span class="required">*</span>:
    </td>
    <td>
    	<s:textfield maxlength="30" name="timeHoliday.holidayName" required="true" size="50" theme="simple"/>
    </td>
</tr>
<tr>
	<td>
        <s:property value="getText('timeHoliday.holidayDate')"/><span class="required">*</span>
    </td>
	<td>
		<s:textfield id="toDate" name="timeHoliday.holidayDate" size="11" readonly="true" theme="simple"/>
        <button id="toDateCal" type="button" class="button"> ... </button> 
        [<fmt:message key="date.format"/>]
	</td>
</tr>
<tr>
	<td>
        <s:property value="getText('timeHoliday.repeat')"/>
    </td>
	<td>
		<s:checkbox labelposition="left" key="timeHoliday.repeat" theme="simple" />
	</td>
</tr>

<%@ include file="/common_functions.jsp"%>

</s:form>

